package first.niuke.huawei.mediumDifficulty;

import java.util.Scanner;

/**
 * @ClassName HJ96
 * @description:
 * @author: 荣燊
 * @create: 2021-07-11 21:20
 **/
public class HJ96 {
    // 表示数字

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()) {
            String s = scanner.nextLine();

            StringBuilder strb = new StringBuilder();
            boolean flag = true;

            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) >= '0' && s.charAt(i) <= '9' && flag) {
                    strb.append('*');
                    flag = false;
                } else if ((s.charAt(i) < '0' || s.charAt(i) > '9') && !flag) {
                    strb.append('*');
                    flag = true;
                }
                strb.append(s.charAt(i));
            }
            if (!flag) {
                strb.append('*');
            }
            System.out.println(strb);
        }
    }
}
